package com.guaoran.user.constants;

/**
 * @author : guaoran
 * @Description : <br/>
 *  响应码
 * @date :2018/12/12 13:10
 */
public enum  ResponseCodeEnum {
    USERORPASSWORD_ERRROR("001001","用户名或密码不存在"),
    SUCCESS("000000","成功"),
    SYS_PARAM_NOT_RIGHT("001002","请求参数错误"),
    TOKEN_EXPIRE("001003","token过期"),
    SIGNATURE_ERROR("001004","签名验证失败"),
    QUERY_DATA_NOT_EXIST("001005","请求数据不存在"),
    USER_DISABLED("001006","用户已被禁用，请联系管理员:guchengniuniu@163.com"),
    SYSTEM_BUSY("001099","系统繁忙，请稍候重试"),
    DUPLICATE_REGISTER("100006","您已注册，可直接登录");

    private final String code;
    private final  String msg;

    ResponseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
